<!DOCTYPE html >
<html>
        <head>
          <title>MongoConnection - Casbah Driver - com.mongodb.casbah.MongoConnection</title>
          <meta name="description" content="MongoConnection - Casbah Driver - com.mongodb.casbah.MongoConnection" />
          <meta name="keywords" content="MongoConnection Casbah Driver com.mongodb.casbah.MongoConnection" />
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link href="../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
      <link href="../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
      <script type="text/javascript" src="../../../lib/jquery.js" id="jquery-js"></script>
      <script type="text/javascript" src="../../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../../lib/template.js"></script>
      <script type="text/javascript" src="../../../lib/tools.tooltip.js"></script>
      <script type="text/javascript" src="../../../lib/modernizr.custom.js"></script><script type="text/javascript" src="../../../lib/diagrams.js" id="diagrams-js"></script>
      <script type="text/javascript">
         if(top === self) {
            var url = '../../../index.html';
            var hash = 'com.mongodb.casbah.MongoConnection$';
            var anchor = window.location.hash;
            var anchor_opt = '';
            if (anchor.length >= 1)
              anchor_opt = '@' + anchor.substring(1);
            window.location.href = url + '#' + hash + anchor_opt;
         }
   	  </script>
    
        </head>
        <body class="value">
      <div id="definition">
        <a href="MongoConnection.html" title="See companion class"><img alt="Object/Class" src="../../../lib/object_to_class_big.png" /></a>
        <p id="owner"><a href="../../package.html" class="extype" name="com">com</a>.<a href="../package.html" class="extype" name="com.mongodb">mongodb</a>.<a href="package.html" class="extype" name="com.mongodb.casbah">casbah</a></p>
        <h1><a href="MongoConnection.html" title="See companion class">MongoConnection</a></h1><h3><span class="morelinks"><div>
            Related Docs:
            <a href="MongoConnection.html" title="See companion class">class MongoConnection</a>
            | <a href="package.html" class="extype" name="com.mongodb.casbah">package casbah</a>
          </div></span></h3><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      </div>

      <h4 id="signature" class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">object</span>
      </span>
      <span class="symbol">
        <span class="name deprecated" title="Deprecated: (Since version 2.7) Please use MongoClient">MongoConnection</span>
      </span>
      </h4>
      
          <div id="comment" class="fullcommenttop"><div class="comment cmt"><p>Wrapper object for Mongo Connections, providing the static methods the Java driver gives.
Apply methods are called as MongoConnection(&lt;params&gt;)
</p></div><dl class="attributes block"> <dt>Annotations</dt><dd>
                <span class="name">@deprecated</span>
              
        </dd><dt>Deprecated</dt><dd class="cmt"><p><i>(Since version 2.7)</i> Please use MongoClient</p></dd></dl><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent"><span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div>
        </div></div>
        

      <div id="mbrsel">
        <div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div>
        <div id="order">
              <span class="filtertype">Ordering</span>
              <ol>
                
                <li class="alpha in"><span>Alphabetic</span></li>
                <li class="inherit out"><span>By inheritance</span></li>
              </ol>
            </div>
        <div id="ancestors">
                <span class="filtertype">Inherited<br />
                </span>
                <ol id="linearization">
                  <li class="in" name="com.mongodb.casbah.MongoConnection"><span>MongoConnection</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
                </ol>
              </div><div id="ancestors">
            <span class="filtertype"></span>
            <ol>
              <li class="hideall out"><span>Hide All</span></li>
              <li class="showall in"><span>Show all</span></li>
            </ol>
          </div>
        <div id="visbl">
            <span class="filtertype">Visibility</span>
            <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
          </div>
      </div>

      <div id="template">
        <div id="allMembers">
        

        

        

        <div id="values" class="values members">
              <h3>Value Members</h3>
              <ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="!=(x$1:Any):Boolean"></a>
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@!=(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="##():Int"></a>
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@##():Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="==(x$1:Any):Boolean"></a>
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@==(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(host:String,port:Int):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(String,Int):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="host">host: <span class="extype" name="scala.Predef.String">String</span></span>, <span name="port">port: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(host:String,port:Int):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Connects to a (single) mongodb node
</p><div class="fullcomment"><div class="comment cmt"><p>Connects to a (single) mongodb node
</p></div><dl class="paramcmts block"><dt class="param">host</dt><dd class="cmt"><p>(String)  server to connect to</p></dd><dt class="param">port</dt><dd class="cmt"><p>(Int) the port on which the database is running</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(host:String):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(String):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="host">host: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(host:String):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Connects to a (single) mongodb node (default port)
</p><div class="fullcomment"><div class="comment cmt"><p>Connects to a (single) mongodb node (default port)
</p></div><dl class="paramcmts block"><dt class="param">host</dt><dd class="cmt"><p>(String)  server to connect to</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span><span class="cmt"><p><span class="extype" name="UnknownHostException"><code>UnknownHostException</code></span> if cannot connect to the host</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(left:com.mongodb.casbah.Imports.ServerAddress,right:com.mongodb.casbah.Imports.ServerAddress,options:com.mongodb.MongoOptions):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(Imports.ServerAddress,Imports.ServerAddress,mongodb.MongoOptions):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="left">left: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>, <span name="right">right: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>, <span name="options">options: <span class="extype" name="com.mongodb.MongoOptions">mongodb.MongoOptions</span></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(left:com.mongodb.casbah.Imports.ServerAddress,right:com.mongodb.casbah.Imports.ServerAddress,options:com.mongodb.MongoOptions):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Creates a Mongo connection in paired mode.</p><div class="fullcomment"><div class="comment cmt"><p>Creates a Mongo connection in paired mode.
This will also work for a replica set and will find
all the members (the master will be used by default)
</p></div><dl class="paramcmts block"><dt class="param">left</dt><dd class="cmt"><p>(ServerAddress) the left side of the pair</p></dd><dt class="param">right</dt><dd class="cmt"><p>(ServerAddress) The right side of the pair</p></dd><dt class="param">options</dt><dd class="cmt"><p>(MongoOptions) the MongoDB Options for the connection</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd><dt>See also</dt><dd><span class="cmt"><p>MongoOptions</p></span><span class="cmt"><p>MongoDBAddress</p></span><span class="cmt"><p>ServerAddress</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(left:com.mongodb.casbah.Imports.ServerAddress,right:com.mongodb.casbah.Imports.ServerAddress):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(Imports.ServerAddress,Imports.ServerAddress):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="left">left: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>, <span name="right">right: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(left:com.mongodb.casbah.Imports.ServerAddress,right:com.mongodb.casbah.Imports.ServerAddress):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Creates a Mongo connection in paired mode.</p><div class="fullcomment"><div class="comment cmt"><p>Creates a Mongo connection in paired mode.
This will also work for a replica set and will find
all the members (the master will be used by default)
</p></div><dl class="paramcmts block"><dt class="param">left</dt><dd class="cmt"><p>(ServerAddress) the left side of the pair</p></dd><dt class="param">right</dt><dd class="cmt"><p>(ServerAddress) The right side of the pair</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd><dt>See also</dt><dd><span class="cmt"><p>MongoDBAddress</p></span><span class="cmt"><p>ServerAddress</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(addr:com.mongodb.casbah.Imports.ServerAddress,options:com.mongodb.casbah.Imports.MongoOptions):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(Imports.ServerAddress,Imports.MongoOptions):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="addr">addr: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>, <span name="options">options: <a href="Imports$.html#MongoOptions=com.mongodb.MongoOptions" class="extmbr" name="com.mongodb.casbah.Imports.MongoOptions">Imports.MongoOptions</a></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(addr:com.mongodb.casbah.Imports.ServerAddress,options:com.mongodb.casbah.Imports.MongoOptions):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Connects to a (single) mongodb node.</p><div class="fullcomment"><div class="comment cmt"><p>Connects to a (single) mongodb node.
</p></div><dl class="paramcmts block"><dt class="param">addr</dt><dd class="cmt"><p>(ServerAddress) the DatabaseAddress</p></dd><dt class="param">options</dt><dd class="cmt"><p>(MongoOptions) DB Options</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd><dt>See also</dt><dd><span class="cmt"><p>MongoOptions</p></span><span class="cmt"><p>MongoDBAddress</p></span><span class="cmt"><p>ServerAddress</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(addr:com.mongodb.casbah.Imports.ServerAddress):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(Imports.ServerAddress):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="addr">addr: <a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(addr:com.mongodb.casbah.Imports.ServerAddress):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Connects to a (single) mongodb node.</p><div class="fullcomment"><div class="comment cmt"><p>Connects to a (single) mongodb node.
</p></div><dl class="paramcmts block"><dt class="param">addr</dt><dd class="cmt"><p>(ServerAddress) the DatabaseAddress</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd><dt>See also</dt><dd><span class="cmt"><p>MongoDBAddress</p></span><span class="cmt"><p>ServerAddress</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(uri:com.mongodb.MongoURI):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(mongodb.MongoURI):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="uri">uri: <span class="extype" name="com.mongodb.MongoURI">mongodb.MongoURI</span></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(uri:com.mongodb.MongoURI):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Connect via a com.mongodb.MongoURI
</p><div class="fullcomment"><div class="comment cmt"><p>Connect via a com.mongodb.MongoURI
</p></div><dl class="paramcmts block"><dt class="param">uri</dt><dd class="cmt"><p>(com.mongodb.MongoURI)</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(uri:com.mongodb.casbah.MongoURI):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(MongoURI):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="uri">uri: <a href="MongoURI.html" class="extype" name="com.mongodb.casbah.MongoURI">MongoURI</a></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(uri:com.mongodb.casbah.MongoURI):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Connect via a MongoURI
</p><div class="fullcomment"><div class="comment cmt"><p>Connect via a MongoURI
</p></div><dl class="paramcmts block"><dt class="param">uri</dt><dd class="cmt"><p>(MongoURI)</p></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(replicaSetSeeds:List[com.mongodb.casbah.Imports.ServerAddress],options:com.mongodb.casbah.Imports.MongoOptions):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(List[Imports.ServerAddress],Imports.MongoOptions):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="replicaSetSeeds">replicaSetSeeds: <span class="extype" name="scala.List">List</span>[<a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a>]</span>, <span name="options">options: <a href="Imports$.html#MongoOptions=com.mongodb.MongoOptions" class="extmbr" name="com.mongodb.casbah.Imports.MongoOptions">Imports.MongoOptions</a></span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(replicaSetSeeds:List[com.mongodb.casbah.Imports.ServerAddress],options:com.mongodb.casbah.Imports.MongoOptions):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Replica Set connection
This works for a replica set or pair,
and finds all the members (the master is used by default)
Takes a MongoOptions object
</p><div class="fullcomment"><div class="comment cmt"><p>Replica Set connection
This works for a replica set or pair,
and finds all the members (the master is used by default)
Takes a MongoOptions object
</p></div><dl class="paramcmts block"><dt class="param">replicaSetSeeds</dt><dd class="cmt"><p>(List[ServerAddress]) The servers to connect to</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd><dt>See also</dt><dd><span class="cmt"><p>MongoDBAddress</p></span><span class="cmt"><p>ServerAddress</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply(replicaSetSeeds:List[com.mongodb.casbah.Imports.ServerAddress]):com.mongodb.casbah.MongoConnection"></a>
      <a id="apply(List[Imports.ServerAddress]):MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">(<span name="replicaSetSeeds">replicaSetSeeds: <span class="extype" name="scala.List">List</span>[<a href="Imports$.html#ServerAddress=com.mongodb.ServerAddress" class="extmbr" name="com.mongodb.casbah.Imports.ServerAddress">Imports.ServerAddress</a>]</span>)</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply(replicaSetSeeds:List[com.mongodb.casbah.Imports.ServerAddress]):com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Replica Set connection
This works for a replica set or pair,
and finds all the members (the master is used by default)
</p><div class="fullcomment"><div class="comment cmt"><p>Replica Set connection
This works for a replica set or pair,
and finds all the members (the master is used by default)
</p></div><dl class="paramcmts block"><dt class="param">replicaSetSeeds</dt><dd class="cmt"><p>(List[ServerAddress]) The servers to connect to</p></dd></dl><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span></dd><dt>See also</dt><dd><span class="cmt"><p>MongoDBAddress</p></span><span class="cmt"><p>ServerAddress</p></span></dd></dl></div>
    </li><li name="com.mongodb.casbah.MongoConnection#apply" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="apply():com.mongodb.casbah.MongoConnection"></a>
      <a id="apply():MongoConnection"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">apply</span><span class="params">()</span><span class="result">: <a href="MongoConnection.html" class="extype" name="com.mongodb.casbah.MongoConnection">MongoConnection</a></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@apply():com.mongodb.casbah.MongoConnection" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <p class="shortcomment cmt">Default connection method - connects to default host &amp; port
</p><div class="fullcomment"><div class="comment cmt"><p>Default connection method - connects to default host &amp; port
</p></div><dl class="attributes block"> <dt>Exceptions thrown</dt><dd><span class="cmt"><p><span class="extype" name="MongoException"><code>MongoException</code></span> on error</p></span><span class="cmt"><p><span class="extype" name="UnknownHostException"><code>UnknownHostException</code></span> if cannot connect to the host</p></span></dd></dl></div>
    </li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="asInstanceOf[T0]:T0"></a>
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@asInstanceOf[T0]:T0" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="clone():Object"></a>
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@clone():Object" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.CloneNotSupportedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="eq(x$1:AnyRef):Boolean"></a>
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@eq(x$1:AnyRef):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="equals(x$1:Any):Boolean"></a>
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">equals</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@equals(x$1:Any):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="finalize():Unit"></a>
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@finalize():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="symbol">classOf[java.lang.Throwable]</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="getClass():Class[_]"></a>
      <a id="getClass():Class[_]"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@getClass():Class[_]" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="hashCode():Int"></a>
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@hashCode():Int" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@isInstanceOf[T0]:Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="ne(x$1:AnyRef):Boolean"></a>
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@ne(x$1:AnyRef):Boolean" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="notify():Unit"></a>
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@notify():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="notifyAll():Unit"></a>
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@notifyAll():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="synchronized[T0](x$1:=&gt;T0):T0"></a>
      <a id="synchronized[T0](⇒T0):T0"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@synchronized[T0](x$1:=&gt;T0):T0" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li name="scala.AnyRef#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="toString():String"></a>
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier"></span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.String">String</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@toString():String" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait():Unit"></a>
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@wait():Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait(x$1:Long,x$2:Int):Unit"></a>
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@wait(x$1:Long,x$2:Int):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
      <a id="wait(x$1:Long):Unit"></a>
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="modifier_kind">
        <span class="modifier">final </span>
        <span class="kind">def</span>
      </span>
      <span class="symbol">
        <span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
      </span>
      </h4><span class="permalink">
      <a href="../../../index.html#com.mongodb.casbah.MongoConnection$@wait(x$1:Long):Unit" title="Permalink" target="_top">
        <img src="../../../lib/permalink.png" alt="Permalink" />
      </a>
    </span>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">(<span>
      
      <span class="defval" name="classOf[java.lang.InterruptedException]">...</span>
    </span>)</span>
              
        </dd></dl></div>
    </li></ol>
            </div>

        

        
        </div>

        <div id="inheritedMembers">
        <div class="parent" name="scala.AnyRef">
              <h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3>
            </div><div class="parent" name="scala.Any">
              <h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
            </div>
        
        </div>

        <div id="groupedMembers">
        <div class="group" name="Ungrouped">
              <h3>Ungrouped</h3>
              
            </div>
        </div>

      </div>

      <div id="tooltip"></div>

      <div id="footer">  </div>


    </body>
      </html>
